package com.jason.schedulemigrationtest.po;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 数据迁移归档日志实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class MigrationArchiveLog {

    public static final String STATUS_SUCCESS = "SUCCESS";
    public static final String STATUS_ROLLBACK = "ROLLBACK";

    private Long id;
    private String batchId;
    private Long startOrderId;
    private Long endOrderId;
    private Integer migrationCount;
    private String status;
    private LocalDateTime migrationTime;
    private String errorMessage;

}